package   com.yunding.house.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunding.house.pojo.Permission;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * function定义 Mapper 接口
 * </p>
 *
 * @author linyang
 * @since 2019-08-15
 */
@Mapper
public interface PermissionMapper extends BaseMapper<Permission> {

    @Select("select * from permission ")
    List<Permission> queryAll();

    List<Permission> loadUserResources(Map<String,Object> map);

}
